package br.com.requisicao.compra.util;

import java.io.IOException;

import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.hibernate.Session;

/**
 * Servlet para iniciar a Session do Hibernate logo no startup do server
 * Poderá ser usada posteriormente para iniciar SpringSecurity, Filtros... etc
 * @author josielnovaes
 *
 */
public class ERPServlet  implements Servlet{

	public void destroy() {
		// TODO Auto-generated method stub
		
	}

	public ServletConfig getServletConfig() {
		// TODO Auto-generated method stub
		return null;
	}

	public String getServletInfo() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Método que inicia as depêndencias no startup do server
	 */
	public void init(ServletConfig arg0) throws ServletException {
		Session session = HibernateUtil.getSession();
	}

	public void service(ServletRequest arg0, ServletResponse arg1)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		
	}

	
	
}